﻿<Page x:Class="ScoreMS.Views.ScoreMultiAdd"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="618"
	Title="ScoreMultiAdd">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="72" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Text="考试成绩 - 批量成绩导入" VerticalAlignment="Center" TextAlignment="Center" FontSize="24" Grid.Row="0"></TextBlock>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="268" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="53" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" VerticalAlignment="Bottom" Margin="0, 0, 0, 10" Orientation="Horizontal">
                    <TextBlock Text="课程" Margin="20, 0, 0, 0" FontSize="18"></TextBlock>
                    <ComboBox Height="23" Margin="20, 0, 0, 0" Name="cbxCourse" MinWidth="120" Width="120" SelectionChanged="cbxCourse_SelectionChanged">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding course_id}"></TextBlock>
                                    <TextBlock Margin="3, 0, 0, 0" Text="{Binding course_name}"></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                </StackPanel>
                <TextBlock Text="选择试卷" Grid.Row="1" FontSize="18" Height="23" Margin="20,0,171,152"></TextBlock>
                <ListBox Grid.Row="1" Margin="50,29,0,0" Name="lstEx">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <CheckBox IsChecked="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}, Mode=TwoWay}"></CheckBox>
                                <TextBlock>
                                    <Run Text="{Binding ex_id}"></Run>
                                    <Run Text="   "></Run>
                                    <Run Text="题目数"></Run>
                                    <Run Text="{Binding smallquestion_count}"></Run>
                                </TextBlock>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Grid>
            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="75" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="94" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="学生人数" FontSize="18" HorizontalAlignment="Right" VerticalAlignment="Bottom"></TextBlock>
                <TextBox Name="txtStudentCount" Grid.Column="1" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="78" Margin="5, 0, 0, 0"></TextBox>
                
                <Button Grid.Row="1" Grid.Column="1" Height="23" Content="选择文件" Margin="5,31,168,99" Click="button1_Click"></Button>
            </Grid>
        </Grid>
    </Grid>
</Page>
